package sren.actor

import akka.actor.typed.Behavior
import akka.actor.typed.scaladsl.{ActorContext, Behaviors}
import org.slf4j.{Logger, LoggerFactory}


object FiveLinePlayer {

  sealed trait FLEvent

  def apply(): Behavior[FLEvent] = {
    Behaviors.setup[FLEvent](ctx => new FiveLinePlayer(ctx).init)
  }
}


class FiveLinePlayer(ctx: ActorContext[FiveLinePlayer.FLEvent]) {
  import FiveLinePlayer.*

  val log: Logger = LoggerFactory.getLogger(this.getClass)

  def init = Behaviors.receiveMessage[FLEvent] { msg =>
    log.info(s"start fiveLine player: ${msg}")
    Behaviors.same
  }

  val baseX = 50
  val baseY = 50

  val ls = (1 to 5).map(_*10+baseY)
  def createFiveLine(): Unit = {
    
  }
}
